//
//  NetWorkModel.h
//  Fangmm
//
//  Created by ChaoZhou on 16/3/3.
//  Copyright © 2016年 com.fangmm. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface NetWorkModel : NSObject
+(void)getRequestkWithUrlString:(NSString*)subUrlString withHttpHeader:(NSDictionary*)headerDic withParas:(NSDictionary*)Paradic withSuccessBlock:(void(^)(NSDictionary*))successblock withFailBlock:(void(^)(id))failBlock;
+(void)postRequestkWithUrlString:(NSString*)subUrlString withHeader:(NSDictionary*)headerDic withParas:(NSDictionary*)paraDic withSuccessBlock:(void(^)(NSDictionary*))successblock withFailBlock:(void(^)(id))failBlock;
+(void)putRequestkWithUrlString:(NSString*)subUrlString withHeader:(NSDictionary*)headerDic withParas:(NSDictionary*)paraDic withSuccessBlock:(void(^)(NSDictionary*))successblock withFailBlock:(void(^)(id))failBlock;
+(void)deleteRequestkWithUrlString:(NSString*)subUrlString withHeader:(NSDictionary*)headerDic withParas:(NSDictionary*)paraDic withSuccessBlock:(void(^)(NSDictionary*))successblock withFailBlock:(void(^)(id))failBlock;
+(void)upLoadFileWithData:(NSData*)imageData withName:(NSString*)name toURL:(NSString*)subUrlString withParas:(NSDictionary*)paraDic withHeader:(NSDictionary*)headerDic withSuccessBlock:(void(^)(NSDictionary*))successblock withFailBlock:(void(^)(id))failBlock;
+(void)uploadMutableDataWithUrlString:(NSString*)urlString withParas:(id)paras withHeaderDic:(NSDictionary *)headerDic  withFileName:(NSString *)fileName withName:(NSString *)name WithDataArray:(NSArray *)dataArray withSuccessBlock:(void(^)(NSDictionary *))successBlock withFailBlock:(void(^)(id))failBlock;
@end
